
package org.xteam.pascal.parser.ast;

import org.xteam.parser.runtime.Span;

public class FormatExpression extends Expression {
	
	public org.xteam.parser.runtime.reflect.AstNodeType getNodeType() {
		return PascalAstPackage.INSTANCE.getFormatExpressionType();
	}
	
	protected Expression expr;
	protected Expression width;
	protected Expression to;
	
	public FormatExpression(Span span, Expression expr,Expression width) {
		super(span);
		this.expr = expr;
		this.width = width;
	}
	public FormatExpression(Span span, Expression expr,Expression width,Expression to) {
		super(span);
		this.expr = expr;
		this.width = width;
		this.to = to;
	}
	
	
	public Expression getExpr() {
		return expr;
	}
	
	public void setExpr(Expression expr) {
		this.expr = expr;
	}
	
	public Expression getWidth() {
		return width;
	}
	
	public void setWidth(Expression width) {
		this.width = width;
	}
	
	public Expression getTo() {
		return to;
	}
	
	public void setTo(Expression to) {
		this.to = to;
	}
	

	public void visit(IPascalVisitor visitor) {
		visitor.visitFormatExpression(this);
	}
}
